package cn.java78.springboot.myschool.service;

import cn.java78.springboot.myschool.dao.AdminDao;
import cn.java78.springboot.myschool.entity.Admin;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author oldliu
 * @since 1.0
 */
@Service
public class AdminService {
    public static final Logger Log = LoggerFactory.getLogger(AdminService.class);

    @Resource
    public AdminDao mapper;

    public static final int PAGESIZE=10;//默认页大小


    public Admin login(String name, String pass) {

            return mapper.login(name,pass);

    }

}
